public class Test {
    public static void main(String[] args) {
        Frog f = new Frog("小绿",1);
        System.out.println(f.getName()+","+f.getAge());
        f.drink();
        f.eat();

        Cat c = new Cat("miao", 10);
        System.out.println(c.getAge()+"  "+c.getName());
        c.drink();
        c.eat();
    }

}
